﻿* Encoding: UTF-8.


*error mixed



MIXED Errors WITH SesCen conditcen timecen treatcen
  /CRITERIA=CIN(95) MXITER(100) MXSTEP(10) SCORING(1) SINGULAR(0.000000000001) HCONVERGE(0, 
    ABSOLUTE) LCONVERGE(0, ABSOLUTE) PCONVERGE(0.000001, ABSOLUTE)
  /FIXED=SesCen conditcen timecen treatcen conditcen*timecen conditcen*treatcen timecen*treatcen 
    conditcen*timecen*treatcen | SSTYPE(3)
  /METHOD=ML
  /REPEATED=measure | SUBJECT(Subject) COVTYPE(ARMA1).


MIXED Nback_RT_mean WITH SesCen conditcen timecen treatcen
  /CRITERIA=CIN(95) MXITER(100) MXSTEP(10) SCORING(1) SINGULAR(0.000000000001) HCONVERGE(0, 
    ABSOLUTE) LCONVERGE(0, ABSOLUTE) PCONVERGE(0.000001, ABSOLUTE)
  /FIXED=SesCen conditcen timecen treatcen conditcen*timecen conditcen*treatcen timecen*treatcen 
    conditcen*timecen*treatcen | SSTYPE(3)
  /METHOD=ML
  /REPEATED=measure | SUBJECT(Subject) COVTYPE(ARMA1).

* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=Condition MEANCI(Errors, 95)[name="MEAN_Errors" 
    LOW="MEAN_Errors_LOW" HIGH="MEAN_Errors_HIGH"] Code MISSING=LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: Condition=col(source(s), name("Condition"), unit.category())
  DATA: MEAN_Errors=col(source(s), name("MEAN_Errors"))
  DATA: Code=col(source(s), name("Code"), unit.category())
  DATA: LOW=col(source(s), name("MEAN_Errors_LOW"))
  DATA: HIGH=col(source(s), name("MEAN_Errors_HIGH"))
  COORD: rect(dim(1,2), cluster(3,0))
  GUIDE: axis(dim(3), label("Condition"))
  GUIDE: axis(dim(2), label("Mean Errors"))
  GUIDE: legend(aesthetic(aesthetic.color.interior), label("Code"))
  GUIDE: text.footnote(label("Error Bars: 95% CI"))
  SCALE: linear(dim(2), include(0))
  ELEMENT: interval(position(Code*MEAN_Errors*Condition), color.interior(Code), 
    shape.interior(shape.square))
  ELEMENT: interval(position(region.spread.range(Code*(LOW+HIGH)*Condition)), 
    shape.interior(shape.ibeam))
END GPL.



* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=Condition MEANCI(Nback_RT_mean, 
    95)[name="MEAN_Nback_RT_mean" LOW="MEAN_Nback_RT_mean_LOW" HIGH="MEAN_Nback_RT_mean_HIGH"] Code 
    MISSING=LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: Condition=col(source(s), name("Condition"), unit.category())
  DATA: MEAN_Nback_RT_mean=col(source(s), name("MEAN_Nback_RT_mean"))
  DATA: Code=col(source(s), name("Code"), unit.category())
  DATA: LOW=col(source(s), name("MEAN_Nback_RT_mean_LOW"))
  DATA: HIGH=col(source(s), name("MEAN_Nback_RT_mean_HIGH"))
  COORD: rect(dim(1,2), cluster(3,0))
  GUIDE: axis(dim(3), label("Condition"))
  GUIDE: axis(dim(2), label("Mean Nback_RT_mean"))
  GUIDE: legend(aesthetic(aesthetic.color.interior), label("Code"))
  GUIDE: text.footnote(label("Error Bars: 95% CI"))
  SCALE: linear(dim(2), include(0))
  ELEMENT: interval(position(Code*MEAN_Nback_RT_mean*Condition), color.interior(Code), 
    shape.interior(shape.square))
  ELEMENT: interval(position(region.spread.range(Code*(LOW+HIGH)*Condition)), 
    shape.interior(shape.ibeam))
END GPL.
